"""
语法：
data.numpy()   => 转换成numpy数组
"""
import torch as t

# 创建一个张量
data = t.tensor([2, 4])
print(data)
print(data.dtype)

data = data.numpy()
print(data)
print(data.dtype)